<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateVoteSurveyQuestionOptionsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('survey_question_options', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键');
			$table->integer('question_id')->unsigned()->comment('关联问题表');
			$table->string('content')->comment('答案的内容');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('vote_survey_question_options');
	}

}
